package com.hackerrank.www.javap.BigNum;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * Created by 27340 on 2017/5/27.
 */
public class BigInteger {
    public static void main(String[] args) {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
        Scanner scanner = new Scanner(System.in);
        BigDecimal b1 = new BigDecimal(scanner.next());
        BigDecimal b2 = new BigDecimal(scanner.next());
        System.out.println(b1.add(b2));
        System.out.println(b1.multiply(b2));
    }
}
